/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package di.persistence.object.impl;

import di.persistence.dao.DIHibernateDaoSupport;
import di.persistence.dao.UserTypeDao;
import di.persistence.entities.User;
import di.persistence.object.UserTypeBO;
import di.persistence.entities.UserType;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.dao.DataAccessException;
import org.springframework.stereotype.Service;

/**
 *
 * @author Kilian Ito
 */

@Service("UserTypeBO")
public class UserTypeBOImpl implements UserTypeBO{

    @Autowired
    UserTypeDao userTypeDao;
    
    public void setUserTypeDao(UserTypeDao userTypeDao) {
        this.userTypeDao = userTypeDao;
    }

    @Override
    public void save(UserType userType) {
        userTypeDao.save(userType);
    }

    @Override
    public void update(UserType userType) {
        userTypeDao.update(userType);
    }

    @Override
    public void delete(UserType userType) {
        userTypeDao.delete(userType);
    }

    @Override
    public List<UserType> getChildren(UserType userType) {
        return userTypeDao.getChildren(userType);
    }
    
}
